extends "../cTDM_4_1/cTDM_4_1.gd"
func _info():
	pass

func _connect():
	._connect()
var baseId = ""
func _extInit():
	._extInit()
	lv = 4
	attCoe.atk *=1.5
	attCoe.maxHp *= 1.5
	addCdSkill("zxs",4)
	addSkillTxt("雷霆重击：[主动]对当前敌人造成123%魔法伤害[cd:4秒]|[被动]对生命低于66%的敌方造成伤害增加40%")
func _castCdSkill(id):
	._castCdSkill(id)
	if id == "zxs" && aiCha:
		cst("雷霆重击","000000",position)
		hurtChara(aiCha,att.atk * 1.23,Chara.HurtType.MGI,Chara.AtkType.SKILL)
		
func _onAtkChara(atkinfo):
	if atkinfo.hitCha != self && !atkinfo.isMiss:
		if atkinfo.hitCha.att.hp / atkinfo.hitCha.att.maxHp <= 0.66:
			atkinfo.hurtVal *= 1.4
	._onAtkChara(atkinfo) 
